package com.lxyk.service;

import com.github.pagehelper.PageInfo;
import com.lxyk.pojo.History;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HistoryService {
    //查询所有
    List<History>queryHistory();

    //map用来存放查询的条件
    PageInfo<History> listHistory(Map<String,Object>map,Integer pageNum,Integer pageSize);

    /**
     * 添加送水历史
     * @param history 表单采集的送水历史信息
     * @return 手影响行数，大于0添加成功，否则添加失败
     */
    int saveHistory(History history);

    History getHistoryById(Integer hid);

    int updateHistory(History history);

    int batchDeleteHistory( String ids);

}
